import { request } from '@/utils/request.js'

// 查询项目列表
export function getProjectList(query) {
  return request({
    url: 'cloud/project/index',
    method: 'get',
    params: query
  })
}
// 获取客户项目详情
export function getUserprojectDetail(query) {
  return request({
    url: 'client/userProject/detail',
    method: 'get',
    params: query
  })
}
// 获取客户项目详情
export function getUserTaskList(query) {
  return request({
    url: 'client/userTask/getListV2',
    method: 'get',
    params: query
  })
}
// 删除任务
export function deleteUserTask(query) {
  return request({
    url: 'client/userTask/delete',
    method: 'post',
    data: query
  })
}
// 修改任务状态
export function updateStatus(query) {
  return request({
    url: 'client/userTask/updateStatus',
    method: 'post',
    data: query
  })
}
// 获取任务列表
export function getListByUser(query) {
  return request({
    url: 'client/userTask/getListByUser',
    method: 'get',
    params: query
  })
}
// 获取任务详情
export function getListByUserDetail(query) {
  return request({
    url: 'client/userTaskDetail/getList',
    method: 'get',
    params: query
  })
}